/**
 * 运势
 */
import request from '../../utils/request'
import { juheToken, tianxingToken, doubanToken } from '../config'
/**
 * 每日一句
 */

export function movieInfo() {
  // const url = `http://api.tianapi.com/everyday/index?key=${tianxingToken}&rand=1`
  const url = `https://douban.uieee.com/v2/movie/in_theaters?count=1`
  return request({
    url,
    method: 'GET'
  })
}

/**
 * 历史上的今天
 */

export function historyToady(date = '1/1') {
  const url = `http://v.juhe.cn/todayOnhistory/queryEvent.php?key=${`40395c2c65f0413dda9ec41453968946`}&date=${date}`
  return request({
    url,
    method: 'GET'
  })
}